package com.bk.test;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
//@RabbitListener(queues = "hello")
@RabbitListener(queues = "fanout.A")
public class Reciver {
	/*@RabbitHandler
	public void process(String hello) {
		System.out.println("Receisver:" + hello);
	}*/
	@RabbitHandler
	public void process(String fanoutMsg) {
		System.out.println("Receiver:" + fanoutMsg);
	}

}
